package
{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import test.MacroTest;
	import test.MicroTest;
	import util.Settings;
	
	/**
	 * 
	 */
	public class Main extends Sprite
	{
		/**
		 * Called when the .swf initializes.
		 */
		public function Main():void
		{
			if (stage)
				init();
			else
				addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		/**
		 * This function is called once this class is guaranteed to be added to the stage.
		 * @param	e
		 */
		private function init(e:Event = null):void
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			Settings.init(stage);
			stage.addEventListener(MouseEvent.RIGHT_MOUSE_DOWN, function(e:Event):void {});
				
			stage.addChild(new GameLoader());
		}
	
	}
}